"""
    This file is part of django-simp.

    django-simp is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    django-simp is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with django-simp.  If not, see <http://www.gnu.org/licenses/>.
"""
from PIL import Image   

from django.http import Http404
from django.template.loader import render_to_string

from simp.models import *
from simp.utils import *

class ModPreset(ModulePresetBase):
    pass
    
    
def apply(ctrl):    
    pass

def commit(ctrl):
    pass

def get_editor(ctrl):
    #image = get_image_for_instance(ctrl.instance)
    return render_to_string('simp/image_view.html', {'image': ctrl.image})

def get_preset(order):
    return ""
    
def get_toolbar(ctrl):
    pass

def get_scripts():
    return render_to_string('simp/scripts/view.js', {});
